<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/27
 * Time: 9:54
 */
namespace Kinfy\Http;
class Route{
    public static function init()
    {
        //echo '路由初始化';
    }
    public static function get($rule,$handle)
    {
        $URL=$_SERVER['REQUEST_URI'];
        if($rule==$URL){

        }
        $harr=explode('@',$handle);
        $class=$harr[0];
        $method=$harr[1];

        $class='\\App\\Controller\\'.ucfirst($class).'Controller';
        //
        $ctl=new $class();
        //
        $ctl->{$method}();
        $URLARR=explode('/',$URL);
    }
    public static function dispatch()
    {


    }
}